<div class="zs-body" data-ng-init="formInit('gzyzgl', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzyzgl');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">用章管理</a>
        </div>
        <div class="option">
        	<!--科员、科长、办公室科员申请使用章-->
            <input type="button" class="zs-btn orange" value="申请用章" ng-show="mi.sa || mi.yzgl_ky"
                 ng-click="startNewBpm('gzyzgl.html','yzgl','gzyzgl');"/>
                 
            <!--办公室主任申请使用章-->
            <input type="button" class="zs-btn orange" value="申请用章" ng-show="mi.sa || mi.yzgl_zr"
                 ng-click="startNewBpm('gzyzgl.html','yzgl_zrjbgb','gzyzgl');"/>
                
         	<!--  <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzyzgl', gzyzgl.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzyzgl')"/>-->
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请人名称" ng-model="gzyzgl.queryObject['sqrmc']"/>
                </span>

            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="部门名称" ng-model="gzyzgl.queryObject['bmmc']"/>
                </span>

            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请事由" ng-model="gzyzgl.queryObject['sqsy']"/>
               </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
               <!-- <a class="ope-1" ng-click="loadData('gzyzgl')"></a>
                <a class="ope-2"></a>-->
                
                <input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzyzgl')"/>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzyzgl','allCheckbox');" />
                                    </th>
								
									<th>申请人名称</th>
									<th>部门名称</th>
									<th>申请时间</th>
									<th>申请使用开始时间</th>
									<th>申请使用结束时间</th>
									<th>申请事由</th>
									<th>是否包含法人代表章</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzyzgl.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzyzgl',r);"
                                            ng-model="r.selected" />
                                    </td>

									<!--  申请人名称 -->
            						<td>
                                        <a  ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqrmc"></label>
                                        </a>
                                   </td>
				
									<!--  部门名称 -->
            						<td>
                                        <a ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.bmmc"></label>
                                        </a>
                                   </td>
									<!--  申请时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请使用开始时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqsykssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请使用结束时间 -->
								   <td>
                                        <a ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqsyjssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请事由 -->
            						<td>
                                        <a ng-click="toQueryWork('gzyzgl.html',r.bpmkey,'gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqsy"></label>
                                        </a>
                                   </td>
								
									<!--  申请事由说明 -->
            						<!--<td>
                                        <a ng-click="toQueryWork('gzyzgl.html','yzgl','gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sqsysm"></label>
                                        </a>
                                   </td>-->
									
									<!--  是否包含法人代表章 -->
								   <td>
                                        <a ng-click="toQueryWork('gzyzgl.html','yzgl','gzyzgl','gzyzgl',r.id);">
                                            <label ng-bind="r.sfbhfwdbz | asChineseBool "></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzyzgl'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="用章管理编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.id" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sqrid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请人名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sqrmc" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">部门ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.bmid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">部门名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.bmmc" class="zs-input" />
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_sqsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzyzgl.editRow.sqsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">申请使用开始时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_sqsykssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzyzgl.editRow.sqsykssj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">申请使用结束时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_sqsyjssj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzyzgl.editRow.sqsyjssj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请事由</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sqsy" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">附件</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.clfj" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请状态</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sqzt" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请事由说明</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sqsysm" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">工作流主键</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.sexeid" class="zs-input" />
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">是否包含法人代表章</td>
                                <td class="left" width="30%">
							   		<input type="checkbox" ng-model="gzyzgl.editRow.sfbhfwdbz" 
                        				ng-true-value="true" ng-false-value="false" value='false' />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">所属分管局领导</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzyzgl.editRow.fgjld" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzyzgl', gzyzgl.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>